<?
include('modelo/conexion.php');
$con=Conectarse();
//$foto= new foto;
//$foto->foto=$imagen_bin;
$id_foto=trim($_GET['id_foto']);
//echo "la foto". $id_foto;
$extension=$_GET['extension'];
header("Content-Type: image/.$extension.");
$srt_inbsertar="select * from fotos where id_foto='$id_foto';";
$result=mysql_query($srt_inbsertar,$con);
while($row=mysql_fetch_array($result)){
echo $row[2];
}
mysql_free_result($result);
mysql_close();
  ?>

